home *** CD-ROM | disk | FTP | other *** search
-
-
-
- mem C Library Procedures mem
-
-
-
- _________________________________________________________________
-
- NNAAMMEE
- memchr, memcmp, memcpy, memset - Operations on byte arrays
-
- SSYYNNOOPPSSIISS
- ##iinncclluuddee <<ssttrriinngg..hh>>
-
- cchhaarr **
- mmeemmcchhrr((_s,, _c,, _n))
-
- iinntt
- mmeemmccmmpp((_s,, _s_2,, _n))
-
- cchhaarr **
- mmeemmccppyy((_d_e_s_t,, _s_o_u_r_c_e,, _n))
-
- cchhaarr **
- mmeemmsseett((_d_e_s_t,, _c,, _n))
-
- AARRGGUUMMEENNTTSS
- char *_s (in) Pointer to array of characters.
-
- char *_s_o_u_r_c_e (in) Pointer to array of characters to
- copy.
-
- char *_d_e_s_t (out) Pointer to array of characters to
- modify.
-
- int _c (in) Value to search for (mmeemmcchhrr), or
- value to set to (mmeemmsseett).
-
- int _n (in) Count of number of characters to
- test, copy, or set.
-
- _________________________________________________________________
-
-
- DDEESSCCRRIIPPTTIIOONN
- These procedures manipulate memory as counted arrays of
- bytes.
-
- The mmeemmcchhrr procedure searches for the first occurrence of _c
- in the _n bytes starting at _s, and returns the address of the
- first such occurrence. If the value _c is not found, then
- NNUULLLL is returned.
-
- MMeemmccmmpp compares two arrays of bytes, _s and _s_2, in order,
- until a difference is found or _n bytes have been compared.
- It returns a value greater than zero if, in the first
- differing byte, the value _s is greater than the value in _s_2.
- If the value in _s is less than the value in _s_2, then a value
- less than zero is returned. If the two arrays are identical
- in their first _n bytes, then zero is returned. Signed
-
-
-
- Sprite v.1.0 Printed: April 14, 1989 1
-
-
-
-
-
-
- mem C Library Procedures mem
-
-
-
- character comparison is used.
-
- MMeemmccppyy copies _n bytes from _s_o_u_r_c_e to _d_e_s_t and returns _d_e_s_t
- as its result.
-
- MMeemmsseett stores the value _c in each of the _n bytes starting at
- _d_e_s_t, and returns _d_e_s_t as its result.
-
-
- KKEEYYWWOORRDDSS
- characters, copy, memory, set, test
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Sprite v.1.0 Printed: April 14, 1989 2
-
-
-
-